// Copyright 2013 Google Inc. All Rights Reserved.

void* __get_sp(void) {
  // We add 1 for the stack space consumed by push %ebp (or r7 for ARM).
  return (void **)__builtin_frame_address(0) + 1;
}
